home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
utility
/
utilcli
/
reqch.lha
/
ReqCh
/
ReqCh.doc
next >
Wrap
Text File
|
1996-10-26
|
3KB
|
71 lines
****************************************************************************
REQUESTCHOICE a replacement written by: Joerg Riemer [23-oct-96]
------------- Schottmüllerstr.107
14167 Berlin Germany
EMail: mission@cs.tu-berlin.de
****************************************************************************
dear user
about two weeks i own also a new Amiga 1200 with kickstart V3.1.
i looked out whats new with this nice machine and checked some various
programs found on the harddisk. for example the iconeditor - great key
binding includes - (NICE!!) :). or requestfile which lets user open up
easly an asl-requester (WOW!!). but requestchoice won't work :(
so i touched in deeper and the result is a new requestchoice command
this command is a replacement for c:requestchoice, to be found in your
directory since the os changes to V39. there are a couple of bugs in
it which makes it unuseable. copy the new command over your old version
and create some proper batchscript which use it to find out how great
it can work.
----------------------------------------------------------------------------
to get a different to the original command the internal
name was changed to [ReqCh] and the version was updated from 39.4 to 40.1
- because it needed 7'th sources to got a bug free version of ReqCh -
----------------------------------------------------------------------------
BUGS in the original requestchoice and why it won't work:
requestchoice uses the dos function (setioerr) to set the selected gadget
number as the result2 variable, but it never returns. the reason for this
is, the result2 variable depends on the returncode a program leaves in D0.
a successful exit with a cleared returnregister signals the shell_process
to clear the result2 variable also. that's why you never get a result2 value.
[it can be a bug or not. in that state it's a point of view]
in my opinion it's right to clear this variable also. because the result2
variable is further to explain an improved error information and not for
handling own used variable values.
to fix this, the new (requestchoice) will return the number of the
selected gadget in a new local variable called "ReqChGG"
the result2 value will only be set if the program fails for other reasons.
----------------------------------------------------------------------
for example: look at the demo.script how to get the selected gadget id.
----------------------------------------------------------------------
other bugs i found:
****************************
it steals memory *** UUHH!!! WHAT A SHAME ***
(yeah, you read right) ****************************
every reference manual 3rd edition WARNS you IN BIG LETTERS to check out
for unfreed memory (ONE OF THE MAJOR BUGS) after running new programs.
(simply using avail flush to compare memory before and after)
and now that monkey business. SORRY, but the guy programmed this tool
must be very stoned while he hacked this (piece). hack it don't smoke it :)
it allocs memory about exec(allovec)-but don't frees them at the end
the same occures for dos(readargs)-don't removed on exit (very business like)
anyway, all bugs removed and i hope so there is nothing more